
function allStudent(instance) {
    const _this = instance
    return new Promise((resolve, reject) => {
        _this.$axios({
            url: "/api/student/information/getStudentByLearninfo",
            method: "get"
        })
            .then(async res => {
                if (res.data.code === 200) {
                    resolve(res.data.data);
                } else {
                    let result = {
                        status: 2,
                        data: res.data
                    }
                    resolve((result));
                }
            }).catch(err => {
                reject(err);
            })
    })
}

export { allStudent };
